package com.enki.cigarettes.entity;

import javax.persistence.*;
import java.util.Date;

@Entity
@Table(name = "admin_employee_t")
public class AdminEmployeeT {
    private String id;
    private String email;
    private String loginname;
    private String password;
    private String realname;
    private boolean gender;
    private int status;
    private int type;
    private String phone;
    private boolean removed;
    private Date createTime;
    private Date updateTime;

    public AdminEmployeeT() {
    }

    public AdminEmployeeT(String id, String email, String loginname, String password, String realname, boolean gender, int status, int type, String phone, boolean removed, Date createTime, Date updateTime) {
        this.id = id;
        this.email = email;
        this.loginname = loginname;
        this.password = password;
        this.realname = realname;
        this.gender = gender;
        this.status = status;
        this.type = type;
        this.phone = phone;
        this.removed = removed;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    @Id

    @Column(name = "id", unique = true, nullable = false, length = 25)
    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Column(name = "email", nullable = false, length = 45)
    public String getEmail() {
        return this.email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @Column(name = "loginname", nullable = false, length = 45)
    public String getLoginname() {
        return loginname;
    }

    public void setLoginname(String loginname) {
        this.loginname = loginname;
    }

    @Column(name = "password", nullable = false, length = 50)
    public String getPassword() {
        return this.password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Column(name = "realname", nullable = false, length = 45)
    public String getRealname() {
        return this.realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    @Column(name = "gender", nullable = false)
    public boolean isGender() {
        return this.gender;
    }

    public void setGender(boolean gender) {
        this.gender = gender;
    }

    @Column(name = "status", nullable = false)
    public int getStatus() {
        return this.status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Column(name = "type", nullable = false)
    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    @Column(name = "phone", nullable = false, length = 45)
    public String getPhone() {
        return this.phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Column(name = "removed", nullable = false)
    public boolean isRemoved() {
        return this.removed;
    }

    public void setRemoved(boolean removed) {
        this.removed = removed;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "create_time", nullable = false, length = 19)
    public Date getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "update_time", nullable = false, length = 19)
    public Date getUpdateTime() {
        return this.updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }




}
